<template>
	<view class="content">
		<u-navbar title="提货订单详情" :placeholder='true' height="88rpx" leftIconColor="#fff"
			titleStyle='color:#fff;font-size:32rpx' left-icon-size="32rpx" bg-color="#FF594D" :autoBack="true">
		</u-navbar>

		<view class="refund_content">
			<view class="order_info">
				<view class="info_item">
					<view class="left">订单id：</view>
					<view class="right">428372</view>
				</view>
				<view class="info_item">
					<view class="left">订单编号：</view>
					<view class="right">220231121164800312741449262</view>
				</view>
				<view class="info_item">
					<view class="left">支付类型：</view>
					<view class="right">微信支付</view>
				</view>
				<view class="info_item">
					<view class="left">下单时间：</view>
					<view class="right">2023—11—21 16:48:00</view>
				</view>
				<view class="info_item">
					<view class="left">收货地址：</view>
					<view class="right">
						秒杀地址
						<view class="updata">
							修改地址
						</view>
					</view>
				</view>
			</view>
		</view>
		<view class="order_content_wrap">
			<view class="order_content">
				<view class="order_item">
					<view class="">
						<view class="order_status">
							<view class="order_num">
								订单编号：643846829774284
							</view>
							<view class="status">
								已付款
							</view>
						</view>
						<view class="line">
							<u-line></u-line>
						</view>
						<view class="order_goods_content">
							<view class="order_goods">
								<goods-num specification="300g"></goods-num>
							</view>
							<view class="order_goods">
								<goods-num specification="300g"></goods-num>
							</view>
						</view>
						<view class="line">
							<u-line></u-line>
						</view>
					</view>
					<view class="operation">
						<view class="operation_money">
							需付款：<text>￥208.00</text>
						</view>

					</view>
				</view>
			</view>
		</view>
		<view class="refund_btn" @click="delModel_show = true">
			退款
		</view>
		<u-popup :show="delModel_show" round="10" mode="center">
			<view class="delModel">
				<view class="delText">
					你确定要对订单进行退款操作吗？
				</view>
				<u-line></u-line>
				<view class="operation">
					<view @click="delModel_show = false" class="btn operation_left">
						取消
					</view>
					<u-line direction='col'></u-line>
					<view @click="delModel_show = false" class="btn operation_right">
						确定
					</view>
				</view>
			</view>
		</u-popup>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				titleStyle: {
					color: '#fff'
				},


				delModel_show: false
			}
		},
		methods: {
			tabClick(item) {
				console.log(item);
			},
			navigateTo(url) {
				uni.navigateTo({
					url
				})
			},

		}
	}
</script>

<style lang="scss">
	.content {
		background-color: #f3f3f3;
		min-height: 100vh;

		.refund_btn {
			width: 400rpx;
			height: 58rpx;
			background: #FF594D;
			border-radius: 98rpx 98rpx 98rpx 98rpx;
			text-align: center;
			line-height: 58rpx;
			font-size: 24rpx;
			font-family: PingFang SC, PingFang SC;
			font-weight: 500;
			color: #FFFFFF;
			margin-top: 100rpx;
			margin-left: 175rpx;
		}

		// padding-top: 35rpx;
		.tab {
			background-color: #fff;
			margin-bottom: 20rpx;
		}

		.order_content_wrap {
			padding: 0 20rpx;
		}

		.refund_content {
			padding: 0 20rpx;

			.order_info {
				padding: 57rpx 20rpx;
				background-color: #fff;

				.info_item {
					display: flex;
					align-items: center;
					padding-bottom: 28rpx;

					&:last-of-type {
						padding-bottom: 0rpx;
					}

					.left {
						width: 200rpx;
						font-size: 26rpx;
						font-family: PingFang SC, PingFang SC;
						font-weight: 500;
						color: #333332;
					}

					.right {
						font-size: 24rpx;
						font-family: PingFang SC, PingFang SC;
						font-weight: 400;
						color: #777777;
						display: flex;

						.updata {
							width: 101rpx;
							height: 34rpx;
							border-radius: 10rpx;
							font-size: 20rpx;
							font-family: PingFang SC, PingFang SC;
							font-weight: 500;
							background-color: #FF594D;
							color: #FFFFFF;
							line-height: 30rpx;
							text-align: center;
							margin-left: 20rpx;
						}
					}

				}
			}
		}

		.order_content {
			padding-top: 20rpx;

			.order_item {
				padding: 25rpx 20rpx 24rpx 40rpx;
				background-color: #fff;
				margin-bottom: 20rpx;
				border-radius: 20rpx 20rpx 20rpx 20rpx;

				.order_status {
					display: flex;
					justify-content: space-between;

					.order_num {
						font-size: 24rpx;
						font-family: PingFang SC, PingFang SC;
						font-weight: 500;
						color: #777777;

					}

					.status {
						font-size: 26rpx;
						font-family: PingFang SC, PingFang SC;
						font-weight: 800;
						color: #FF2525;
					}
				}

				.line {
					padding: 20rpx 0;
				}

				.order_goods_content {
					.order_goods {
						margin-bottom: 20rpx;

						&:last-of-type {
							margin-bottom: 0rpx;

						}
					}
				}

				.operation {
					display: flex;
					justify-content: space-between;
					align-items: center;

					.operation_money {
						font-size: 24rpx;
						font-weight: 500;
						color: #777777;

						text {
							font-size: 32rpx;
							font-family: PingFang SC, PingFang SC;
							font-weight: 800;
							color: #FF2525;
						}
					}

					.operation_right_content {
						display: flex;
						justify-content: center;

						.btn {
							width: 170rpx;
							height: 56rpx;
							line-height: 56rpx;
							text-align: center;
							box-sizing: border-box;
							border-radius: 10rpx 10rpx 10rpx 10rpx;
						}

						.operation_left {
							border: 1rpx solid #FF594D;
							color: #FF594D;
						}

						.operation_right {
							margin-left: 37rpx;
							background: #FF594D;
							color: #FFFFFF;
						}
					}
				}
			}
		}

		.delModel {
			width: 690rpx;
			height: 370rpx;
			box-sizing: border-box;
			// padding: 24rpx 20rpx;

			.delTitle {
				font-size: 32rpx;
				font-family: PingFang SC, PingFang SC;
				font-weight: 500;
				color: #333332;
				display: flex;
				justify-content: space-between;

				image {
					width: 32rpx;
					height: 32rpx;
				}
			}

			.delText {
				height: 250rpx;
				text-align: center;
				padding: 100rpx 230rpx 0;
				box-sizing: border-box;
				// line-height: 170rpx;
				font-size: 26rpx;
				font-family: PingFang SC, PingFang SC;
				font-weight: 500;
				color: #777777;
			}

			.operation {
				display: flex;
				justify-content: center;
				height: 120rpx;

				.btn {
					width: 345rpx;
					height: 100%;
					line-height: 56rpx;
					font-size: 32rpx;
					font-family: PingFang SC, PingFang SC;
					font-weight: 500;
					color: #FF594D;
					text-align: center;
					line-height: 110rpx;
					box-sizing: border-box;
					border-radius: 10rpx 10rpx 10rpx 10rpx;
				}

				// .operation_left {
				// 	border: 1rpx solid #FF594D;
				// 	color: #FF594D;
				// 	// margin-right: 37rpx;
				// }

				// .operation_right {
				// 	background: #FF594D;
				// 	color: #FFFFFF;
				// }
			}
		}
	}
</style>